﻿function Load_Ajax(idupdate) {
    $("body").addClass("loading");
    var e = window.event;
    e.preventDefault();
    e = e.srcElement;
    $.ajax({
        url: $(e).attr("href"),
        data: { sync: 1 },
        complete: function (data) {
            $("#" + idupdate).html(data.responseText);
            readyHandler_Id(idupdate);
            $("body").removeClass("loading");
            window.history.pushState({ path: $(e).attr("href").replace(/sync=\d/i, "") }, "", $(e).attr("href").replace(/sync=\d/i, ""));
        }
    });
}